package com.codestudy.service;

import cn.undraw.util.result.R;
import com.codestudy.dto.NoteDTO;
import com.codestudy.entity.Result1;
import com.codestudy.vo.NoteVO;

import java.time.LocalDateTime;
import java.util.List;

public interface NoteService {

    Result1 addNote(NoteDTO noteDTO);


    List<NoteVO> findNote(Integer id, Integer userId, Integer type, LocalDateTime updateTime, String noteTitle, int page, int pageSize,int orderByLike);


    Result1 update(NoteDTO noteDTO);

    Result1 delNote(Integer id);

    Integer findNoteByUserId(Integer noteId);

    int getNoteNumByUserId(Integer userId);

    R seleUserByLCC(Integer noteId);
}
